package com.bingwang.sourcelearn.aop;

import com.bingwang.sourcelearn.aop.config.AopConfig;
import com.bingwang.sourcelearn.aop.service.UserService;
import com.bingwang.sourcelearn.utils.ContextUtil;
import org.springframework.context.ApplicationContext;

/**
 * @author WangBing
 * @date 2023/11/18 08:39
 */
public class AopTestMain {
    public static void main(String[] args) {
        ApplicationContext context = ContextUtil.getContext(AopConfig.class);
        UserService userService = context.getBean(UserService.class);
        userService.deleteAll();
    }
}
